<div class="tableform">
      <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
        <tr>
          <td>发货单号</td>
          <td>店铺</td>
          <td>申请单号</td>
          <td>申请人</td>
          <td>申请时间</td>
          <td>AX客户</td>
          <td>客户名称</td>
          <td>物料</td>
        </tr>
    <{assign var="key" value="0"}>
      <{foreach from=$res item=his}>
    <{assign var="key" value=$key+1 }>
      <tbody>
        <tr>
          <td><{$his.delivery_bn}></td>
          <td><{$his.shop_name}></td>
          <td><{$his.stockapp_bn}></td>
          <td><{$his.operator}></td>
          <td><{$his.app_time}></td>
          <td><{$his.AXCustomer}></td>
          <td><{$his.customername}></td>
          <td><{$his.bnsContent}></td>
        </tr>
        </tbody>
      <{/foreach}>
        <tr>
          <td>总数：</td>
          <td><{$key}></td>
        </tr>
      </table>
</div>